//
//  CollectionVideoCell.m
//  ArtOfLiving
//
//  Created by 王文晓 on 16/5/12.
//  Copyright © 2016年 刘虎. All rights reserved.
//

#import "CollectionVideoCell.h"

@interface CollectionVideoCell ()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@property (weak, nonatomic) IBOutlet UILabel *descriptionLabel;
@property (weak, nonatomic) IBOutlet UIImageView *headerImage;

@end

@implementation CollectionVideoCell



- (void)setCellWithModel:(id)model {
    
    CollectionVideo *videoModel = model;
    self.titleLabel.text = videoModel.title;
    self.descriptionLabel.text = videoModel.descriptions;
    [self.headerImage sd_setImageWithURL:[NSURL URLWithString:videoModel.feed]];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
